package cn.net.sinodata.system.domain.vo;

import java.util.Date;

import cn.net.sinodata.common.translation.annotation.Translation;
import cn.net.sinodata.common.translation.constant.TransConstant;
import com.fasterxml.jackson.annotation.JsonFormat;
import cn.net.sinodata.system.domain.PmHolidayDescription;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import cn.net.sinodata.common.excel.annotation.ExcelDictFormat;
import cn.net.sinodata.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 节假日描述视图对象 pm_holiday_description
 *
 * @author chenbaijun
 * @date 2025-11-04
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PmHolidayDescription.class)
public class PmHolidayDescriptionVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private String id;

    /**
     * 日期
     */
    @ExcelProperty(value = "日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date holidayDate;

    /**
     * 币种编号
     */
    @ExcelProperty(value = "币种编号")
    private String currencyCode;

    /**
     * 币种名称
     */
    @ExcelProperty(value = "币种名称")
    private String currencyName;

    /**
     * 节假日类型（0-否 1-是）
     */
    @ExcelProperty(value = "节假日类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=-否,1=-是")
    @Translation(type = TransConstant.DICT_TYPE_TO_LABEL, other = "holiday_type")
    private String holidayType;

    /**
     * 描述
     */
    @ExcelProperty(value = "描述")
    private String description;

}
